<?php
class ShowErrorAction extends Action{
	function init(){}
	
	function cmdIndex(){
		$id=isset($_GET['id'])?$_GET['id']:null;
		$id=verify_id($id);
		$page=isset($_REQUEST['page'])?$_REQUEST['page']:1;
		$page=verify_id($page);
		$pagesize=5;
		
		$url=isset($_REQUEST['url'])?$_REQUEST['url']:'http://sms.8eoo.com';
		$this->assign('url', $url);
		
		$log=new LogModel();
		$list=$log->geterrorList($id,$page,$pagesize);
		$this->assign('count', $list['count']);
		$this->assign('page', $page);
		$this->assign('pagecount', $list['pagecount']);
		$this->assign('pagesize', $pagesize);
		$this->assign('list', $list['data']);
		$this->assign('id', $id);
		$this->assign('title', "显示错误日志");
		$this->display('showerror.htm');
	}
}